import service from '@/utils/request'

// 获取腾讯云token的方法
export const getTencentToken = (params) => {
  return service({
    url: '/server/tencent/getUploadToken',
    method: 'get',
    params
  })
}

export const tencentUploadFile = (data) => {
  return service({
    url: '/server/tencent/uploadFile',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  })
}
